package com.qf.listener;

import com.rabbitmq.client.DnsSrvRecordAddressResolver;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "testQueue2")
public class Listener2 {
    @RabbitHandler
    public void workListener(String str){
        System.out.println("====第二个监听器===="+str);
    }
}
